package com.csii.adhoc.dataready.mapper;

import com.csii.adhoc.dataready.TDataRelationDtlPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TDataRelationDtlMapper {
    int deleteByPrimaryKey(@Param("relationId")String relationId, @Param("masterFld") String masterFld, @Param("slaveFld") String slaveFld);

    int deleteByRelationId(String relationId);

    int insertOneTDataRelationDtl(TDataRelationDtlPo record);

    int insertListTDataRelationDtl(List<TDataRelationDtlPo> record);

    int insertSelective(TDataRelationDtlPo record);

    TDataRelationDtlPo selectByPrimaryKey(String modelId);

    int updateByPrimaryKeySelective(TDataRelationDtlPo record);

    int updateByPrimaryKey(TDataRelationDtlPo record);

    List<TDataRelationDtlPo> selectListTDataRelationDtl(String type);

    List<TDataRelationDtlPo> selectListTDataRelationDtlByIds(List list);

    List<Map<String,String>> selectTableIdByModelId(String modelId) ;

    TDataRelationDtlPo selectOneTDataRelationDtl(String modelId, String type);

    Map selCustDataDbTable(String model_id);
}